<div class="topnav no-line"><div class="box">
  <ul class="topnav-r">
  	<li class="buy-che"><a href="<?php echo url::g('u=cshop\cart');?>"><b class="n" id="shop_cart_num"></b>购物车</a></li>
    <li><a href="<?php echo ROOT_URL . '?u=cshop\order\p';?>">我的订单</a></li>
    <li><a href="<?php echo ROOT_URL . '?u=cuser\favorite';?>">收藏夹</a></li>
    <li>联系电话<b class="top-tel">173 1629 8907</b></li>
  </ul>
  <ul>
      <li id="login_cp"><em>欢迎您，</em><a href="<?php echo url::g('u=cuser\login');?>" class="t">请登录</a><a href="<?php echo url::g('u=cuser\reg');?>">免费注册</a></li>
  </ul>
</div></div>
<div class="top"><div class="box">
  <div class="logo fl-l"><h1><a href="<?php echo ROOT_URL?>?logo"><?php e_h(YF_f::$config['title'])?></a></h1></div>
  <div class="search-d fl-r">
    <form <?php if(YF_f::$arr['c']!='goods\search')echo 'target="_blank"'?> method="post" action="<?php echo url::g('u=cgoods\search')?>" onSubmit="return CheckForm(this)">
    	<div class="search-in fl-l"><input type="search" class="search-v" name="qw" value="<?php e_h($g_qw)?>" check="^\S+$" placeholder="输入关键词" /></div>
        <div class="fl-l"><button class="search-but" type="submit">搜索</button></div>
    </form>
  </div>
  <div class="fl-r"></div>
</div></div>
<div class="menuB no-line"><div class="box">
  
  <ul class="fl-l menu">
    <li id="menu_home"><a href="<?php echo ROOT_URL?>?home">首页</a></li>
    <li id="menu_all_goods"><a href="<?php echo url::g('u=cgoods\sort\v')?>">全部商品分类</a></li>
    
    <?php foreach (YF_f::initC('\c\link\nav')->findForMark('top') as $v){
        $a = arr_decode($v['arr']);
        $open =  $a['target'] ? ' target="'. htmlq($a['target']) .'"' : '';
        $css = $a['cssClass'] ? ' class="button_16 '.  htmlq($a['cssClass']) .'"' : '';
        echo '<li><a href="'. htmlq($v['url']) .'" '. $open .$css .'>'. htmlq($v['name']) .'</a></li>';        
    }?>
  </ul>
</div></div>